<template>
  <div class="user-page">
    <img
      class="tou"
      src="http://liufusong.top:8080/img/profile/bg.png"
      alt=""
    />
    <div class="fangkuai">
      <div class="head">
        <div class="box">
          <img src="http://liufusong.top:8080/img/profile/avatar.png" alt="" />
        </div>
      </div>
      <p>游客</p>
      <van-button type="primary" size="mini" to="index" color="#21b97a"
        >去登陆</van-button
      >
    </div>
    <van-grid :column-num="3" :border="false" class="van-grid">
      <van-grid-item class="van-grid-item">
        <van-icon name="star-o" class="iconfont-user" :size="25" />
        <p class="item-list-grid-text">我的收藏</p>
      </van-grid-item>
      <van-grid-item class="van-grid-item">
        <van-icon name="shop-o" class="iconfont-user" :size="25" />
        <p class="item-list-grid-text">我的出租</p>
      </van-grid-item>
      <van-grid-item class="van-grid-item">
        <van-icon name="clock-o" class="iconfont-user" :size="25" />
        <p class="item-list-grid-text">看房记录</p>
      </van-grid-item>
      <van-grid-item class="van-grid-item">
        <van-icon name="balance-pay" class="iconfont-user" :size="25" />
        <p class="item-list-grid-text">成为房主</p>
      </van-grid-item>
      <van-grid-item class="van-grid-item">
        <van-icon name="contact" class="iconfont-user" :size="25" />
        <p class="item-list-grid-text">个人资料</p>
      </van-grid-item>
      <van-grid-item class="van-grid-item">
        <van-icon name="phone-circle-o" class="iconfont-user" :size="25" />
        <p class="item-list-grid-text">联系我们</p>
      </van-grid-item>
    </van-grid>
    <div class="dichen">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'user-page',
  data() {
    return {}
  },
  async created() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.van-grid {
  margin-top: 120px;
}
.tou {
  width: 100%;
}
.fangkuai {
  position: absolute;
  width: 85%;
  height: 165px;
  background-color: #fff;
  margin-top: -60px;
  margin-left: 30px;
  // transform: translateX(-50%);
  box-shadow: 0 0 10px 3px #ddd;
  p {
    margin-top: 10px;
    margin-left: 150px;
    font-size: 12px;
  }
  .van-button {
    margin-top: 10px;
    margin-left: 138px;
    border-radius: 8px;
  }
  .box {
    display: flex;
    width: 70px;
    height: 70px;
    margin-top: -30px;
    margin-left: 130px;
    border-radius: 50%;
    .head {
      display: flex;
      flex: center;
      width: 30px;
      height: 30px;
      background-color: rgb(238, 131, 131);
      border-radius: 50%;
    }
  }
}
.dichen {
  width: 350px;
  height: 88px;
  margin-left: 13px;
  img {
    width: 100%;
  }
}
</style>
